/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ResultadoSimulacao.java
 *
 * Created on 12/05/2010, 18:48:40
 */
package Forms;

import E_explicito_ComputedChaining10bits.EncadeamentoCC10bits;
import E_explicito_ComputedChaining2bits.EncadeamentoCC2bits;
import E_explicito_Dinamica.EncadeamentoED;
import E_explicito_EstaticoDCWC.EncadeamentoEE_DCWC;
import E_explicito_EstaticoEICH.EncadeamentoEE_EICH;
import E_explicito_EstaticoEISCH.EncadeamentoEE_EISCH;
import E_explicito_EstaticoLICH.EncadeamentoEE_LICH;
import E_explicito_EstaticoLISCH.EncadeamentoEE_LISCH;
import E_implicito_LinearQuotient.EncadeamentoILQ;
import E_implicito_Sequencial.EncadeamentoIS;
import E_implicito_Brent.EncadeamentoIB;
import E_implicito_Arvore_Binaria.EncadeamentoIAB;
import arquivos.Centraliza;
import arquivos.MetodoHash;
import java.util.ArrayList;
import javax.swing.JLabel;
import javax.swing.JSeparator;

/**  jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 100, 80, -1));
 *
 * @author rafaelob
 */
public class ResultadoSimulacao extends javax.swing.JFrame {

    MetodoHash metodoHash;

    /** Creates new form ResultadoSimulacao */
    public ResultadoSimulacao() {
        initComponents();
        Centraliza.setCentro(this, 0, 140);
        //setTamanhoTabela(20);
    }

    public void setResultado(int tamanho, MetodoHash metodoHash, int numbersSize) {
        JSeparator jSeparatorV = new JSeparator();
        jSeparatorV.setOrientation(javax.swing.SwingConstants.VERTICAL);
        jPanel1.add(jSeparatorV, new org.netbeans.lib.awtextra.AbsoluteConstraints(102, 320, 10, ((tamanho - 11) * 20)));
        JSeparator jSeparatorV2 = new JSeparator();
        jSeparatorV2.setOrientation(javax.swing.SwingConstants.VERTICAL);
        jPanel1.add(jSeparatorV2, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 320, 10, ((tamanho - 11) * 20)));
        setResizable(false);
        if (tamanho > 17) {
            setSize(560, 760);
        }

        ArrayList<JLabel> posicoes = new ArrayList<JLabel>();
        int posicao = 11;
        for (int count = 0; count < (tamanho - 11); count++) {
            posicoes.add(new JLabel());
            posicoes.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
            posicoes.get(count).setText(String.valueOf(posicao));
            jPanel1.add(posicoes.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(60, ((300 + (count + 1) * 20)), 40, -1));
            posicao++;


        }


        ArrayList<JSeparator> separatorsH = new ArrayList<JSeparator>();
        for (int count = 0; count < tamanho; count++) {
            separatorsH.add(new JSeparator());
            jPanel1.add(separatorsH.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 120 + (count * 20), 240, 10));
        }

        if (metodoHash instanceof EncadeamentoED) {
            EncadeamentoED encadeamento = (EncadeamentoED) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecords().size() > 0) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    String Chaves = "";
                    for (int count2 = 0; count2 < encadeamento.getTabela().getCelula(count).getRecords().size(); count2++) {
                        Chaves = Chaves + encadeamento.getTabela().getCelula(count).getRecords().get(count2).getChave() + " ";
                    }
                    chaves.get(count).setText(Chaves);
                    jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));


                }
            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabelEE.setText(String.valueOf(encadeamento.getEspaçoAdicional()));
            jLabelTitulo.setText("Método Hash: Encadeamento Dinâmico");

        } else if (metodoHash instanceof EncadeamentoEE_DCWC) {
            EncadeamentoEE_DCWC encadeamento = (EncadeamentoEE_DCWC) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            ArrayList<JLabel> ponteiros = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                ponteiros.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecord() != null) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    chaves.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getRecord().getChave()));
                    if (encadeamento.getTabela().getCelula(count).getPoint() != null) {
                        ponteiros.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                        ponteiros.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getPoint().getPosicao()));

                    }

                }
                jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));
                jPanel1.add(ponteiros.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 100 + (count * 20), 80, -1));
            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabel20.setEnabled(false);
            jLabelTitulo.setText("Método Hash: DCWC");

        } else if (metodoHash instanceof EncadeamentoEE_LISCH) {
            EncadeamentoEE_LISCH encadeamento = (EncadeamentoEE_LISCH) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            ArrayList<JLabel> ponteiros = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                ponteiros.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecord() != null) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    chaves.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getRecord().getChave()));
                    if (encadeamento.getTabela().getCelula(count).getPoint() != null) {
                        ponteiros.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                        ponteiros.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getPoint().getPosicao()));

                    }

                }
                jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));
                jPanel1.add(ponteiros.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 100 + (count * 20), 80, -1));
            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabel20.setEnabled(false);
            jLabelTitulo.setText("Método Hash: LISCH");

        } else if (metodoHash instanceof EncadeamentoEE_EISCH) {
            EncadeamentoEE_EISCH encadeamento = (EncadeamentoEE_EISCH) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            ArrayList<JLabel> ponteiros = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                ponteiros.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecord() != null) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    chaves.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getRecord().getChave()));
                    if (encadeamento.getTabela().getCelula(count).getPoint() != null) {
                        ponteiros.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                        ponteiros.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getPoint().getPosicao()));

                    }

                }
                jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));
                jPanel1.add(ponteiros.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 100 + (count * 20), 80, -1));
            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabel20.setEnabled(false);
            jLabelTitulo.setText("Método Hash: EISCH");

        } else if (metodoHash instanceof EncadeamentoEE_LICH) {
            EncadeamentoEE_LICH encadeamento = (EncadeamentoEE_LICH) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            ArrayList<JLabel> ponteiros = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                ponteiros.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecord() != null) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    chaves.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getRecord().getChave()));
                    if (encadeamento.getTabela().getCelula(count).getPoint() != null) {
                        ponteiros.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                        ponteiros.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getPoint().getPosicao()));

                    }

                }
                jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));
                jPanel1.add(ponteiros.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 100 + (count * 20), 80, -1));
            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabel20.setEnabled(false);
            System.out.println(encadeamento.getAreaPrimaria());
            separatorsH.get(encadeamento.getAreaPrimaria() - 1).setForeground(new java.awt.Color(204, 0, 0));
            jLabelTitulo.setText("Método Hash: LICH");

        } else if (metodoHash instanceof EncadeamentoEE_EICH) {
            EncadeamentoEE_EICH encadeamento = (EncadeamentoEE_EICH) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            ArrayList<JLabel> ponteiros = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                ponteiros.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecord() != null) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    chaves.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getRecord().getChave()));
                    if (encadeamento.getTabela().getCelula(count).getPoint() != null) {
                        ponteiros.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                        ponteiros.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getPoint().getPosicao()));

                    }

                }
                jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));
                jPanel1.add(ponteiros.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 100 + (count * 20), 80, -1));
            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabel20.setEnabled(false);
            System.out.println(encadeamento.getAreaPrimaria());
            separatorsH.get(encadeamento.getAreaPrimaria() - 1).setForeground(new java.awt.Color(204, 0, 0));
            jLabelTitulo.setText("Método Hash: EICH");


        } else if (metodoHash instanceof EncadeamentoIS) {
            EncadeamentoIS encadeamento = (EncadeamentoIS) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecord() != null) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    chaves.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getRecord().getChave()));

                }
                jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));

            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabel20.setEnabled(false);
            jLabelTitulo.setText("Método Hash: Progressive Overflow");
        }
        else if (metodoHash instanceof EncadeamentoILQ) {
            EncadeamentoILQ encadeamento = (EncadeamentoILQ) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecord() != null) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    chaves.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getRecord().getChave()));

                }
                jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));

            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabel20.setEnabled(false);
            jLabelTitulo.setText("Método Hash: Linear Quotient");
        }
        else if (metodoHash instanceof EncadeamentoIB) {
            EncadeamentoIB encadeamento = (EncadeamentoIB) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecord() != null) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    chaves.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getRecord().getChave()));

                }
                jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));

            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabel20.setEnabled(false);
            jLabelTitulo.setText("Método Hash: Método de Brent");
            
        } else if (metodoHash instanceof EncadeamentoIAB){
            EncadeamentoIAB encadeamento = (EncadeamentoIAB) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecord() != null) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    chaves.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getRecord().getChave()));

                }
                jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));

            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabel20.setEnabled(false);
            jLabelTitulo.setText("Método Hash: Árvore Binária");
        }

<<<<<<< .mine
else if (metodoHash instanceof EncadeamentoCC10bits) {
            EncadeamentoCC10bits encadeamento = (EncadeamentoCC10bits) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            ArrayList<JLabel> ponteiros = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                ponteiros.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecord() != null) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    chaves.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getRecord().getChave()));
                    if (encadeamento.getTabela().getCelula(count).getPseudoPonteiro() != -1) {
                        ponteiros.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                        ponteiros.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getPseudoPonteiro()));

                    }

                }
                jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));
                jPanel1.add(ponteiros.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 100 + (count * 20), 80, -1));
            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabel20.setEnabled(false);
            jLabelTitulo.setText("Método Hash: Cadeia Computada 10 Bits");

        }
else if (metodoHash instanceof EncadeamentoCC2bits) {
            EncadeamentoCC2bits encadeamento = (EncadeamentoCC2bits) metodoHash;
            ArrayList<JLabel> chaves = new ArrayList<JLabel>();
            ArrayList<JLabel> ponteiros = new ArrayList<JLabel>();
            for (int count = 0; count < tamanho; count++) {
                chaves.add(new JLabel());
                ponteiros.add(new JLabel());
                if (encadeamento.getTabela().getCelula(count).getRecord() != null) {
                    chaves.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                    chaves.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getRecord().getChave()));
                    if (encadeamento.getTabela().getCelula(count).getPseudoPonteiro() != -1) {
                        ponteiros.get(count).setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
                        ponteiros.get(count).setText(String.valueOf(encadeamento.getTabela().getCelula(count).getPseudoPonteiro()));

                    }

                }
                jPanel1.add(chaves.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100 + (count * 20), 88, -1));
                jPanel1.add(ponteiros.get(count), new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 100 + (count * 20), 80, -1));
            }
            jLabelNA.setText(String.valueOf(encadeamento.getAcessos()));
            double AP = (Math.round(((double) encadeamento.getAcessos() / numbersSize) * 100.0)) / 100.0;
            jLabelAP.setText(String.valueOf(AP));
            double PF = (Math.round(((double) numbersSize / tamanho) * 100.0)) / 100.0;
            jLabelPF.setText(String.valueOf(PF) + "%");
            jLabelNC.setText(String.valueOf(encadeamento.getColisoes()));
            jLabel20.setEnabled(false);
            jLabelTitulo.setText("Método Hash: Cadeia Computada 2 Bits");

        }


=======




>>>>>>> .r10
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabelTitulo = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        jSeparator3 = new javax.swing.JSeparator();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jSeparator4 = new javax.swing.JSeparator();
        jPanel2 = new javax.swing.JPanel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabelNA = new javax.swing.JLabel();
        jLabelAP = new javax.swing.JLabel();
        jLabelPF = new javax.swing.JLabel();
        jLabelNC = new javax.swing.JLabel();
        jLabelEE = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Resultado Simulação Métodos Hash");

        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabelTitulo.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
        jLabelTitulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelTitulo.setText("Método Hash: ");
        jLabelTitulo.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        jPanel1.add(jLabelTitulo, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, 500, -1));

        jLabel1.setFont(new java.awt.Font("Dialog", 1, 14));
        jLabel1.setText("Posição:");
        jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 70, -1, -1));

        jLabel2.setFont(new java.awt.Font("Dialog", 1, 14));
        jLabel2.setText("Chave:");
        jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 70, -1, -1));

        jLabel3.setFont(new java.awt.Font("Dialog", 1, 14));
        jLabel3.setText("Ponteiro:");
        jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 70, -1, -1));

        jSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);
        jPanel1.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 70, -1, 250));

        jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);
        jPanel1.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(102, 70, 10, 250));

        jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel5.setText("0");
        jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 100, 40, -1));

        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel6.setText("1");
        jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 120, 40, -1));

        jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel7.setText("2");
        jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 140, 40, -1));

        jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel8.setText("3");
        jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 160, 40, -1));

        jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel9.setText("4");
        jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 180, 40, -1));

        jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel10.setText("5");
        jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 200, 40, -1));

        jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel11.setText("6");
        jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 220, 40, -1));

        jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel12.setText("7");
        jPanel1.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 240, 40, -1));

        jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel13.setText("8");
        jPanel1.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 260, 40, -1));

        jLabel14.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel14.setText("9");
        jPanel1.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 280, 40, -1));

        jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel15.setText("10");
        jPanel1.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 300, 40, -1));
        jPanel1.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 100, 240, 10));

        jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 0, 0)));

        jLabel16.setText("Números de Acessos:");

        jLabel17.setText("Average Probe:");

        jLabel18.setText("Packing Factor:");

        jLabel19.setText("Número de Colisões:");

        jLabel20.setText("Espaço Extra:");

        jLabelNA.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);

        jLabelAP.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);

        jLabelPF.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);

        jLabelNC.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);

        jLabelEE.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelNA, javax.swing.GroupLayout.DEFAULT_SIZE, 73, Short.MAX_VALUE)
                            .addComponent(jLabelNC, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel17)
                        .addGap(18, 18, 18)
                        .addComponent(jLabelAP, javax.swing.GroupLayout.DEFAULT_SIZE, 102, Short.MAX_VALUE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel18)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)
                        .addComponent(jLabelPF, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel20)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
                        .addComponent(jLabelEE, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(12, 12, 12))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(jLabelNA))
                .addGap(29, 29, 29)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17)
                    .addComponent(jLabelAP))
                .addGap(30, 30, 30)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel18)
                    .addComponent(jLabelPF))
                .addGap(28, 28, 28)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19)
                    .addComponent(jLabelNC))
                .addGap(26, 26, 26)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelEE))
                .addContainerGap(40, Short.MAX_VALUE))
        );

        jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 70, 230, 250));

        jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel21.setText("0");
        jPanel1.add(jLabel21, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 100, 40, -1));

        jButton1.setText("Nova Simulação");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 360, -1, -1));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 544, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 482, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        this.dispose();
        SimulacaoMetodosHash simulacao = new SimulacaoMetodosHash();
        simulacao.setVisible(true);
    }//GEN-LAST:event_jButton1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new ResultadoSimulacao().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabelAP;
    private javax.swing.JLabel jLabelEE;
    private javax.swing.JLabel jLabelNA;
    private javax.swing.JLabel jLabelNC;
    private javax.swing.JLabel jLabelPF;
    private javax.swing.JLabel jLabelTitulo;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    // End of variables declaration//GEN-END:variables
}
